import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UsersModule } from './api/users/users.module';
import { mongoConfig } from './config/mongo.config';
import { MongooseModule } from '@nestjs/mongoose';
import { GamesModule } from './api/games/games.module';
import { TokenModule } from './api/token/token.module';

@Module({
  imports: [
    UsersModule,
    MongooseModule.forRoot(mongoConfig.uri),
    GamesModule,
    TokenModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
